/***********************************************************************
 * Module:  Classifier.java
 * Author:  Stefan
 * Purpose: Defines the Class Classifier
 ***********************************************************************/

package org.dslintegration.merge.km3.core;

public abstract class Classifier extends ModelElement {

	protected Package parent;

	@Override
	public String toString() {
		return "Classifier [name=" + name + ", location=" + location + "]";
	}

	public Package getParent() {
		return parent;
	}

	public void setParent(Package parent) {
		this.parent = parent;
	}

	@Override
	public String getQName() {
		return parent.getQName().substring(0, 1).toLowerCase() + parent.getQName().substring(1) + "." + this.getName();
	}
}